/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.only5.manager;

import edu.uoc.tdp.pac4.only5.domain.Booking;
import edu.uoc.tdp.pac4.only5.domain.Resource;
import edu.uoc.tdp.pac4.only5.exceptions.EespaisDatabaseException;
import edu.uoc.tdp.pac4.only5.vo.ResourceBookingVO;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

/**
 *
 * @author Gerard
 * @author Alex
 */
public interface ResourceManager extends Remote {
    
    public void addResource(Resource resource) throws RemoteException;
    public void modifyResource (Resource resource) throws RemoteException;
    public void deleteResource(String resourceId) throws RemoteException;
    public Resource getResource(String resourceId) throws RemoteException;

    List<Resource> getNotBookedResources() throws RemoteException, EespaisDatabaseException;
    List<ResourceBookingVO> getResourceBooking(int bookingId) throws RemoteException, EespaisDatabaseException;
    void saveBookedResources(Booking booking) throws RemoteException, EespaisDatabaseException;
    
}
